/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FrameWork.Objects.Items;

import FrameWork.Objects.MyObject;
import GamePlay.Global;
import java.io.IOException;

/**
 *
 * @author ThanhTri
 */
public class AddLenBoom extends Water{
    public AddLenBoom(int _X,int _Y, int _SizeX, int _SizeY,
            float _TimeAni,
            int _Map[][],int _Width, int _Height,
            int _ID) throws IOException{     
        super(_X, _Y, _SizeX, _SizeY, _TimeAni,  _Map, _Width, _Height, _ID);
        m_CurFrame = 9;
    }
    
      public void ActionCollision (MyObject _Object){
        if ( _Object.getSTATUS()==Global.STT_DEATH)return;
        switch (_Object.getID()){
            //<editor-fold defaultstate="collapsed" desc="Boom">
            case Global.ID_BOOM_EXPLOSION:
                if(m_STATUS==Global.STT_ACTIVE){
                     m_STATUS = Global.STT_DEATH;
                }
                break;
                //</editor-fold>
        }
    }
}